<template>
  <div class="layout">
    <aside class="sidebar">
      <h2>物流管理</h2>
      <nav>
        <router-link to="/">仪表盘</router-link>
        <router-link to="/warehouses">仓库</router-link>
        <router-link to="/inventory">库存</router-link>
        <router-link to="/orders">订单</router-link>
        <router-link to="/shipments">运单</router-link>
      </nav>
    </aside>
    <main class="content">
      <router-view />
    </main>
  </div>
  
</template>

<script setup lang="ts">
</script>

<style>
body, html, #app { height: 100%; margin: 0; }
.layout { display: flex; height: 100%; font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif; }
.sidebar { width: 220px; background: #0f172a; color: #fff; padding: 16px; box-sizing: border-box; }
.sidebar h2 { margin-top: 0; font-size: 18px; }
.sidebar a { display: block; color: #cbd5e1; text-decoration: none; padding: 8px 0; }
.sidebar a.router-link-active { color: #fff; font-weight: 600; }
.content { flex: 1; padding: 20px; overflow: auto; }
.card { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 16px; margin-bottom: 16px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
table { width: 100%; border-collapse: collapse; }
th, td { border-bottom: 1px solid #e5e7eb; text-align: left; padding: 8px; }
button { padding: 6px 10px; border: 1px solid #cbd5e1; background: #f8fafc; border-radius: 6px; cursor: pointer; }
input, select { padding: 6px 8px; border: 1px solid #cbd5e1; border-radius: 6px; }
</style>


